package principle.singleResponsibilityPrinciple.origin;

import org.junit.Test;

/**
 * @author： pang-yun
 * @date： 2021-08-21 16:47
 * 功能目的 ：用于  单一原则  案例 ： 初始
 */

public class VideoUserService {
    public void ServeGrade(String userType){
        if ("vip".equals(userType)){
            System.out.println("Vip : 1080P 蓝光");
        }else if ("common".equals(userType)){
            System.out.println("common : 720p");
        }else if ("guest".equals(userType)){
            System.out.println("guest : 360p");
        }
    }

    @Test
    public void test(){
        VideoUserService videoUserService = new VideoUserService();
        videoUserService.ServeGrade("vip");
        videoUserService.ServeGrade("common");
        videoUserService.ServeGrade("guest");
    }



}
